var _util = require('util/util.js')

console.log('service');

var _account_service = {
  checkLogin: function(resolve, reject){
    _util.request({
      url: _util.getServerURL('/user/get_login_account_info'),
      method: 'POST',
      success: resolve,
      error: reject
    });
  },

  login: function(account, resolve, reject){
    _util.request({
      url: _util.getServerURL('/user/login'),
      data: account,
      method: 'POST',
      success: resolve,
      error: reject
    });
  }
}
module.exports = _account_service